{include file="public/head"}
<div class="main">
    {include file="public/left"}
    <div class="middle">
    {include file="public/header"}
    <div class="help_content">
        <div class="help_left">
            <ul>
                <h6>{:__('流程演示')}</h6>
                <dl><i class="layui-icon">&#xe623;</i>{:__('悬赏任务流程')}</dl>
                <dl><i class="layui-icon">&#xe623;</i>{:__('认证流程')}</dl>
                <dl><i class="layui-icon">&#xe623;</i>{:__('充值流程')}</dl>
                <dl><i class="layui-icon">&#xe623;</i>{:__('提箱流程')}</dl>
                <dl><i class="layui-icon">&#xe623;</i>{:__('注册流程')}</dl>
            </ul>
            <ul class="hot_topic" id="hot_topic">
                <h6>{:__('热点问题')}</h6>
            </ul>
            <ul class="service">
                <h6>{:__('客服服务')}</h6>
                <dl>
                    {:__('客服电话')}：<span id="phone"></span>
                </dl>
                <dl>
                    {:__('Email')}：<span id="email"></span>
                </dl>
            </ul>
        </div>
        <div class="help_right">
            <h6><i class="layui-icon">&#xe705;</i>{:__('知识分类')}</h6>
            <dl>
                <div>
                    <h6>{:__('注册/登陆')}</h6>
                </div>
                <div>
                    <h6>{:__('常见问题')}</h6>
                </div>
                <div>
                    <h6>{:__('新手入门')}</h6>
                </div>
                <div>
                    <h6>{:__('认证中心')}</h6>
                </div>
                <div>
                    <h6>{:__('悬赏任务指南')}</h6>
                </div>
            </dl>
        </div>
    </div>
    {include file="public/foot"}
    </div>
    {include file="public/right"}
</div>
{include file="public/footer"}
<script>
    objs = {'mission_config':1}
    CacheLoad(objs);
    $(document).queue('mission_config,',function(){
        var mission_config = getLocalStorage('mission_config');
        var mission_configobj = JSON.parse(mission_config);
        $(".service #phone").html(mission_configobj['service']['phone']);
        $(".service #email").html(mission_configobj['service']['email']);
    });
    $.ajax({
        url:'/api/info/index',
        type:'get',
        data:{page:1,limit:7,cat_id:27},
        success:function(ret){
            var htl = "";
            if(ret['code'] == 1){
                if(ret['data'] == '' || ret['data'] == undefined || ret['data'] == null){
                    return false;
                }
                if(ret['data']['ls'] == '' || ret['data']['ls'] == undefined || ret['data']['ls'] == null){
                    return false;
                }
                for(i in ret['data']['ls']){
                    htl += '<dl><i class="layui-icon">&#xe756;</i><a href="/'+ret['data']['ls'][i]['route']+'">'+ret['data']['ls'][i]['title']+'</a></dl>';
                }
                $("#hot_topic").append(htl);
            } else if(ret['code'] != 401){
                layer.msg(ret.msg,{icon:2});
            }
        }
    })
</script>